package com.example.work4.http.imp

import com.example.work4.po.RegisterInfo
import com.example.work4.po.ResultBean
import com.example.work4.po.UserInfo
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.*

interface SSORetrofit{
    @Multipart
    @POST("/sso/login")
    fun send(
        @Part("email") param: RequestBody,
        @Part("password") param2:RequestBody
    ): Call<ResultBean<UserInfo>>

    @POST("/sso/register")
    fun register(
       @Body registerInfo: RegisterInfo
    ): Call<ResultBean<UserInfo>>

    @POST("/api/mail/sendEmail")
    fun sendEmail(
        @Query("address") param: String
    ): Call<ResultBean<Void>>
}